package a.c;

public class g
{
  private z a = new z();
  private v b;
  private v c;
  private int d = 2147483647;
  public static boolean e;
  
  public g()
  {
    c();
  }
  
  public void a(int paramInt)
  {
    this.d = paramInt;
    c(paramInt);
  }
  
  public int a()
  {
    return this.d;
  }
  
  public void a(f paramf)
  {
    int j = z.f;
    int i = z.e;
    v localv = this.a.g();
    if (localv != this.b) {}
    do
    {
      this.a.h(localv);
      localv = localv.b();
      if ((j == 0) && (i != 0)) {
        return;
      }
      if (i == 0) {
        break;
      }
      this.a.b(paramf, this.b);
      this.b = this.b.a();
    } while (j != 0);
    c(this.d);
  }
  
  public boolean b()
  {
    return this.b != this.c;
  }
  
  public void b(f paramf)
  {
    int j = z.f;
    int i = z.e;
    v localv = this.a.g();
    if ((localv != this.c) && ((j != 0) || (localv.c() != paramf))) {
      this.a.h(localv);
    }
    while (j != 0)
    {
      if (j == 0) {
        if (localv == this.b)
        {
          c();
          return;
        }
      }
      localv = localv.b();
      if (i == 0) {
        break;
      }
    }
  }
  
  public void c()
  {
    this.a.clear();
    if (z.f == 0) {}
    Object localObject = this.b != null ? this.b.c() : null;
    this.b = (this.c = this.a.a(localObject));
  }
  
  public f d()
  {
    if (z.f == 0) {
      if (!b()) {
        return null;
      }
    }
    Object localObject = this.b.c();
    this.b = this.b.b();
    return (f)localObject;
  }
  
  public boolean e()
  {
    return this.b.a() != null;
  }
  
  public f f()
  {
    if (z.f == 0)
    {
      if (!e()) {
        return null;
      }
      this.b = this.b.a();
    }
    return (f)this.b.c();
  }
  
  public Object g()
  {
    return this.b.c();
  }
  
  public boolean a(Object paramObject)
  {
    return this.b.c() == paramObject;
  }
  
  private void c(int paramInt)
  {
    int j = z.f;
    int i = z.e;
    if (j == 0) {
      if (paramInt <= 0)
      {
        c();
        if ((j == 0) && (i == 0)) {
          return;
        }
      }
    }
    v localv;
    Object localObject;
    do
    {
      do
      {
        if (this.a.size() - 1 <= paramInt) {
          break;
        }
        if (i != 0) {
          break label138;
        }
        if (this.a.f().a() == this.b) {
          break;
        }
        localv = this.a.f().a();
        localObject = this.a.h(localv);
        this.c.a(localObject);
      } while (i == 0);
    } while (j != 0);
    if (j == 0) {
      if ((this.a.size() - 1 > paramInt) && (this.a.f().a() == this.b))
      {
        label138:
        localv = this.a.f().a();
        localObject = this.a.h(localv);
        this.c.a(localObject);
        this.b = this.c;
      }
    }
    do
    {
      if (this.a.size() - 1 <= paramInt) {
        break;
      }
      localv = this.a.g();
      if (j == 0) {
        if (localv == this.b)
        {
          c();
          return;
        }
      }
      this.a.h(localv);
    } while (i == 0);
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.c.g
 * JD-Core Version:    0.7.0.1
 */